package cn.echo.modules.sys.dao;

import cn.echo.modules.sys.entity.Site;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Auser on 2017/4/7.
 */
@Repository
public interface SiteMapper {
    public List<Site> findAll(Site site);
    public Site findById(Site site);
    //取前面的id，取后面的删除标记//String id，Site site
    public Site findByIdUseTwoParam(@Param("id") String id, @Param("site") Site site);
    public List<Site> findAllReturnByMap(Site site);
    public List<Site> findByDomain(Site site);
    public Site findByIdReturnByAlias(Site site);
    public Site findByIdReturnByResultMap(Site site);


    public boolean insert(Site site);
    public boolean insertUseGenerateId(Site site);

    public boolean updateById(Site site);

    public boolean deleteById(Site site);
    public boolean deleteByIdUseUpdate(Site site);



}
